import { get, post } from "./http"

//--菜单模块start------------
// 添加
export const reqmenuadd = params => post("/api/menuadd", params);

//列表
export const reqmenulist = params => get("/api/menulist", params)

//删除
export const reqmenudelete = params => post("/api/menudelete", params)

//详情
export const reqmenuinfo = params => get("/api/menuinfo", params)

//修改
export const reqmenuedit = params => post("/api/menuedit", params)
//--菜单模块end------------

//角色模块start
//添加
export const reqroleadd = params => post("/api/roleadd",params)
//列表 
export const reqrolelist = params => get("/api/rolelist",params)
//角色获取
export const reqroleinfo =params =>get("/api/roleinfo",params)
//角色修改
export const reqroleedit = params =>post("/api/roleedit",params)
//角色删除
export const reqroledelete = params =>post("/api/roledelete",params)
//角色模块end